package com.maxjay.common.exception.support;


/**
 * 返回给前台的消息：Json格式
 * 
 * @author zmw
 * 
 */
public class JsonMessage {
	private String title;

	private String message;
	
	private String name;

	public JsonMessage(int level, String message) {
		name = "JsonMessage";
		title = GeneExceptionUtil.level2Name(level);
		this.message = message;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
